<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta name="google-site-verification" content="EsepA0P7DwqW4Sl4nbRBicq3ieXXCEAYL-ID2x6ajtk"/>
  <META name="y_key" content="236bc15ffcbfd131"/>
  <meta name="msvalidate.01" content="128A4883E7558129DB2B4D6F00DA5610"/>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
  <meta name="verify-v1" content="/1ye9S3fYnPSK8ACXckjCRvhk322Z8WST4ty0ksoZKc="/>
  <%= stylesheet_link_tag 'application' %>
  <%= stylesheet_link_tag 'screen' %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tag %>

  <%= yield(:head) %>

  <title>NoiseTube</title>
  <link rel="shortcut icon" href="/images/NoiseTube.ico"/>
  <style type="text/css">
      <!--
      .Style1 {
          font-size: 100%;
          font-weight: bold;
      }

      .Style2 {
          font-size: 18px
      }

      #test tbody th {
          background: #FFF url(th_bck.gif) repeat-x;
          color: #666;
          padding: 5px 10px;
          border-left: 1px solid #CCC;
      }

      #test tbody th {
          background: #fafafb;
          border-top: 1px solid #CCC;
          text-align: left;
          font-weight: normal;
      }

      #test tbody tr td {
          padding: 5px 10px;
          color: #666;
      }

      #test tbody tr:hover {
          background: #FFF url(tr_bck.gif) repeat;
      }

      -->
  </style>

  <!-- GOOGLE ANALYTICS -->

  <!-- END GOOGLE ANALYTICS -->
</head>

<body <%= " onload='#{@onload}' " unless @onload.nil? %> <%= " onunload='#{@onunload}' " unless @onunload.nil? %> >
<div id="container">
  <div id="inner-container" class="row">
     <span class="cartasur-lang">
      <%=   link_to("English", :locale => :en)  %>
      |
      <%=  link_to("Français", :locale => :fr) %>
   </span>
    <table>
      <tr>
        <td>
          <a href="/cartasur"><img style="width:200px; height:144px; " src="/images/cartasur_v0.png"/></a>
        </td>
        <td align="right" style="width:550px; vertical-align: middle; font-family: Georgia; font-size: 24px; line-height: 100%;">
          <a href="/cartasur"><img style="font-weight: 400; margin-top: 40px; " src="/images/cartasur-text.png"/></a>
        </td>
      </tr>
    </table>


    <div id="navs">
      <!--        <div style="color:red"><h2><b>Maintenance Mode: We are currently moving the server.Sorry for the inconvenient.</b></h2></div>
      -->
      <div class="clearfix" style="float:left;">
        <ul id="nav" class="cartMenu">
          <li><%= link_to (t 'cartasur.menu.about'), :controller => 'homepage', :action => "index" %></a></li>

          <!-- <li><a href="/api_overview"><%= t 'cartasur.menu.api' %></a></li> -->

          <% if logged_in? %>
              <li><%= link_to (t 'cartasur.menu.elog'), :controller => 'users', :action => "show", :id => current_user %></li>
              <li><%= link_to (t 'cartasur.menu.profile'), :controller => 'users', :action => "edit", :id => current_user %></li>
              <li><%= link_to (t 'cartasur.menu.forums'), :controller => 'forums', :action => "index", :id => current_user %></li>

              <% if admin? %>
                  <li><a href="/cartasur/objectives"><%= t 'cartasur.menu.intranet' %></a>
                    <ul>
                      <li><%= link_to (t 'cartasur.menu.admin.users'), :controller => 'users', :action => "index" %></li>
                      <li><%= link_to (t 'cartasur.menu.admin.objectives'), :controller => 'objectives', :action => "index" %></li>
                      <!-- <li><%= link_to (t 'cartasur.menu.admin.visiteds'), :controller => 'visiteds', :action => "index" %></li> -->
                      <!--<li><%= link_to (t 'cartasur.menu.admin.viewanswers'), :controller => 'answers', :action => "index" %></li>-->
                      <li><%= link_to (t 'cartasur.menu.admin.reports'), :controller => 'objectives', :action => "weeklyreport" %></li>
                      <li><%= link_to (t 'cartasur.menu.admin.locations') << "  ", :controller => 'locations', :action => "index" %></li>

                      <li><%= link_to (t 'cartasur.menu.admin.backups'), :controller => 'homepage', :action => "download" %></li>
                    </ul>
                  </li>
              <% end %>
          <% end %>

          <% if logged_in? and (current_user.role =~ /admin/ or current_user.role =~ /partner/) %>
              <li><%= link_to (t 'cartasur.menu.documents'), :controller => 'cartasur/homepage', :action => 'documents', :id => current_user %></li>
          <% end %>
          <li><%= link_to (t 'cartasur.menu.partners'), :controller => 'cartasur/homepage', :action => "team" %></a></li>

          </ul>
        </div>
      <div class="clearfix" style="float:right;">
        <ul id="nav" class="cartMenu">
          <li><%= link_to (t 'cartasur.menu.help'), :controller => 'homepage', :action => "help" %></a></li>
          <% if logged_in? %>
              <li><%= link_to (t 'cartasur.menu.logout'), :controller => 'sessions', :action => "destroy" %></a></li>
          <% else %>
              <li><%= link_to (t 'cartasur.menu.login'), :controller => 'sessions', :action => "new" %></a></li>
          <% end %>

        </ul>
      </div>
    </div>
  </div>

  <div class="row">

    <br/>
    <%= yield %>

  </div>

  <div class="row" id="footer">
    <hr/>
    <center>
      <p>2012-2014 - NoiseTube <a href="http://www.csl.sony.fr">Sony Computer Science Laboratory Paris</a> &amp; the
        <a href="http://www.brussense.be">VUB BrusSense group</a><br/>
        NoiseTube source code available under <a href="http://www.gnu.org/licenses/lgpl-2.1.html">GNU LGPL v2.1</a>
        license and hosted on <a href="http://code.google.com/p/noisetube">Google Code</a>. Go back to NoiseTube
        <a href="/">here</a>.</p>

      <div style="align:center;position:relative;text-align:left;width:500px">
        <div style="position:relative;float:left;width:100px">
          <a rel="license" href="http://creativecommons.org/licenses/by/3.0/"><img src="http://i.creativecommons.org/l/by/3.0/88x31.png" alt="Creative Commons License" style="border: medium none;" height="31" width="88"/></a>
        </div>
        <div>Except where otherwise noted, content on this site is licensed under a
          <a rel="license" href="http://creativecommons.org/licenses/by/3.0/" class="subfoot">Creative Commons
            Attribution 3.0 License</a></div>
      </div>
    </center>
    <br/><br/>
  </div>

</div>
</body>
</html>
